package com.spj.aopTest;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author :spj
 * @Date:2022/3/28
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("aopConfig.xml");
        ServiceDao serviceDao = applicationContext.getBean("serviceImpl", ServiceDao.class);
        serviceDao.eat();
    }
}
